//
// Created by mio on 25-5-9.
//

#ifndef CLOUDASSISTANT_H
#define CLOUDASSISTANT_H

#include <QWidget>


class MainWgt;
class ListinfoWgt;
class TitleWgt;

class CloudAssistant : public QWidget
{
    Q_OBJECT

public:
    CloudAssistant(QWidget *parent = nullptr);
    ~CloudAssistant();

protected:
    /* 针对当前控件的鼠标事件重写, 比如按住可以拖拽窗口移动等 */
    void mouseMoveEvent(QMouseEvent* event) override;
    void mousePressEvent(QMouseEvent* event) override;
    void mouseReleaseEvent(QMouseEvent* event) override;

private:
    QPoint point_;
    bool isPress_ = false;

    MainWgt* mainWgt_;
    TitleWgt* titleWgt_;
    ListinfoWgt* listWgt_;
};
#endif // CLOUDASSISTANT_H
